#pragma once

#include "../umlmodel_global.h"

#include "LiteralSpecification.h"

namespace uml {

/// <summary>
/// LiteralNull
/// A LiteralNull specifies the lack of a value.
/// </summary>
class UMLMODEL_EXPORT LiteralNull : public LiteralSpecification {

public: // Constructors and destructors
    explicit LiteralNull(const QString& umlType="uml::LiteralNull");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Methods
    /// <summary>
    /// isComputable
    /// The query isComputable() is redefined to be true.
    /// </summary>
    bool isComputable() const override;

    /// <summary>
    /// isNull
    /// The query isNull() returns true.
    /// </summary>
    bool isNull() const override;

};

} // namespace uml
